#include <stdio.h>

void StringCount( char *s )
{
    int a = 0, b = 0, c = 0, d = 0, e = 0;

    while (*s != '\0') {
        if (*s >= 'A' && *s <= 'Z') {
            a++;
        } else if (*s >= 'a' && *s <= 'z') {
            b++;
        } else if (*s == ' ') {
            c++;
        } else if (*s >= '0' && *s <= '9') {
            d++;
        } else {
            e++;
        }
        s++;
    }

    printf("%d %d %d %d %d\n", a, b, c, d, e);
}
